<?php

/**

 * 物流自提服务站首页

 *

 * * @网店运维 (c) 2015-2018 ShopWWI Inc. (http://www.shopwwi.com)

 * @license    http://www.shopwwi.c om

 * @link       交流群号：111731672

 * @since      网店运维提供技术支持 授权请购买shopnc授权

 */

defined('ByShopWWI') or exit('Access Invalid!');

class optionsControl extends BaseChainCenterControl

{

    public function checkmemberOp()

    {

        $name = trim($_GET['name']);

        if (!$name) {

            echo '';

            die;

        }

        /**

         * 转码

         */

        if (strtoupper(CHARSET) == 'GBK') {

            $name = Language::getGBK($name);

        }

        $obj_member = Model('member');

        $member_info = $obj_member->getMemberInfo(array('member_name' => $name));

        if (is_array($member_info) && count($member_info) > 0) {

            if (strtoupper(CHARSET) == 'GBK') {

                $member_info['member_name'] = Language::getUTF8($member_info['member_name']);

            }
            $member_info['member_mobile'] = Language::getUTF8($member_info['member_mobile']);

            echo json_encode(array('id' => $member_info['member_id'], 'name' => $member_info['member_name'],'member_truename' => $member_info['member_truename'], 'mobile' => $member_info['member_mobile'], 'points' => round($member_info['member_points'], 2)));

        } else {

            echo '';

            die;

        }

    }

  
  
}